<style type="text/css">
    .dialog-p{
        margin: auto;
        border: 1px outset #ccc;
        width: 100%;
        height: 100%;
    }

</style>
<div class="dialog-p">
    <form method="POST" action="painel_admin.php?option=pre-inscricao-servico">
        Registro Geral<input type="text" name="rg-filter"/>
        <input type="submit">
    </form>
    <?php
    $controleServico = new ControleServico("");
    $rg = "";
    if (isset($_POST['rg-filter'])) {
        $rg = $_POST['rg-filter'];
    }
    $list = $controleServico->listServico($rg);
    ?>
    <div id="page-lista">                
        <table id="table-head">
            <th>Nome</th>
            <th>Cracha</th>
            <th>RG</th>
            <th>Nascimento</th>
            <th>Ações</th>
        </table>
        <div id="table-content">
            <table>
                <?php
                foreach ($list as $registro => $coluna) {
                    echo "<TR>";
                    echo "<TD>" . $coluna['nome'] . "</TD>";
                    echo "<TD>" . $coluna['nome_cracha'] . "</TD>";
                    echo "<TD>" . $coluna['rg'] . "</TD>";
                    echo "<TD>" . $coluna['data_nascimento'] . "</TD>";
                    echo "<TD>
                        <a href=view_participante.php?participante=" . $coluna['id'] . "><img src='../img/find.png' /></a>
                        </TD>";
                }

                echo "</TR>";
                ?>
            </table>
        </div>
        Total.:<?php echo count($list); ?>
    </div>
</div>
